Spread Windows Forms 12.0 Product Documentation
IsPointInLink(Graphics,Int32,Int32,Rectangle,String,Font,HorizontalAlignment,VerticalAlignment,LinkArea[],Picture) Method


FarPoint.Win Assembly > FarPoint.Win Namespace > FpHyperlink Class > IsPointInLink Method : IsPointInLink(Graphics,Int32,Int32,Rectangle,String,Font,HorizontalAlignment,VerticalAlignment,LinkArea[],Picture) Method
GDI+ graphics surface
X-coordinate of point
Y-coordinate of point
Image rectangle
Text of the hyperlink
Font of the text
Horizontal alignment
Vertical alignment
Areas of the hyperlink
Picture (image)
Determines if the point is in the text of the link in the hyperlink control.
Syntax
'Declaration
 
Public Overloads Shared Function IsPointInLink( _
   ByVal g As Graphics, _
   ByVal x As Integer, _
   ByVal y As Integer, _
   ByVal r As Rectangle, _
   ByVal text As String, _
   ByVal f As Font, _
   ByVal horizontalAlignment As HorizontalAlignment, _
   ByVal verticalAlignment As VerticalAlignment, _
   ByVal areas() As LinkArea, _
   ByVal pict As Picture _
) As Integer
'Usage
 
Dim g As Graphics
Dim x As Integer
Dim y As Integer
Dim r As Rectangle
Dim text As String
Dim f As Font
Dim horizontalAlignment As HorizontalAlignment
Dim verticalAlignment As VerticalAlignment
Dim areas() As LinkArea
Dim pict As Picture
Dim value As Integer
 
value = FpHyperlink.IsPointInLink(g, x, y, r, text, f, horizontalAlignment, verticalAlignment, areas, pict)
public static int IsPointInLink( 
   Graphics g,
   int x,
   int y,
   Rectangle r,
   string text,
   Font f,
   HorizontalAlignment horizontalAlignment,
   VerticalAlignment verticalAlignment,
   LinkArea[] areas,
   Picture pict
)

Parameters

g
GDI+ graphics surface
x
X-coordinate of point
y
Y-coordinate of point
r
Image rectangle
text
Text of the hyperlink
f
Font of the text
horizontalAlignment
Horizontal alignment
verticalAlignment
Vertical alignment
areas
Areas of the hyperlink
pict
Picture (image)
See Also

Reference

FpHyperlink Class
FpHyperlink Members
Overload List